package com.glacier.yuyuan.gen.webapp.domain;

import com.glacier.common.core.domain.BaseEntity;

/**
 * date 2023-01-28 21:40
 * 数据源管理
 *
 * @author glacier
 * @version 1.0.0
 */
public class GenDatasource extends BaseEntity {

    private static final long serialVersionUID = -7395490649467449616L;
    /**
     * 数据库类型
     */
    private String dbType;

    /**
     * 名称
     */
    private String name;

    /**
     * 连接url
     */
    private String url;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    public GenDatasource() {
    }

    public GenDatasource(String id) {
        super(id);
    }

    public String getDbType() {
        return dbType;
    }

    public void setDbType(String dbType) {
        this.dbType = dbType;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "GenDatasource{" +
                "dbType='" + dbType + '\'' +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", id='" + id + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
